<?php get_header(); ?>

<?php get_sidebar(); ?>

<div id="right" class="t-blog single">
	
<?php get_template_part('header-blog'); // header-blog.php ?>
	
	<div id="content">
		<div id="content-inner">
			<div id="content-pad">
			
				<div id="grid-wrap">
<?php while(have_posts()): the_post(); ?>
				<div class="grid-4">
				<article id="entry-<?php the_ID(); ?>" <?php post_class('entry'); ?>>

					<?php if(get_post_format()) { get_template_part('post-formats','single'); } // POST FORMATS TEMPLATE ?>

					<header>
						<h1 class="entry-title"><?php the_title(); ?></h1>
					</header>
					
					<?php if($post->post_content != ""): ?>
					<div class="text">
						<?php the_content(); ?>
						<div class="clear"></div>
						<?php wp_link_pages(array('before'=>'<div class="entry-page-links">'.bandit::get_lang('post_page_links',__('Pages:','creatic')),'after'=>'</div>')); ?>
					</div>
					<?php endif; ?>
					<?php the_tags('<div class="tags clearfix"><span>Tags:</span> ', ' ', '</div>'); ?>
					<ul class="entry-meta clearfix">
						<li class="published"><i class="icon"></i><?php bandit::time_ago(); ?></li>
						<li class="category"><div class="nofloat"><i class="icon"></i><?php the_category(', '); ?></div></li>
						<li class="like-count"><a id="like-<?php the_ID(); ?>" href="#" <?php bandit::liked_class(); ?>>
							<i class="icon"></i><?php bandit::post_liked_count(); ?></a>
						</li>
						<?php edit_post_link('<i class="icon"></i>Edit', '<li class="edit">', '</li>'); ?>
					</ul>
				</article>

				<?php if(bandit::comments_enabled() || have_comments()): ?>
						<div id="entry-comments">
							<?php comments_template(); ?>
						</div>
				<?php endif; ?>

				</div><!--end grid-4-->	
				
				<?php if(!bandit::get_option('theme_disable_author')): ?>
				<!--author/avatar block-->
				<div class="grid-2 author">
					<div class="author-image">
						<div class="circle"></div>
						<?php echo get_avatar( get_the_author_meta('email'), '160' ); ?>
					</div>
					<p class="by"><?php bandit::lang('post_meta_by',__('written by','creatic')); ?></p>
					<p class="author"><?php the_author(); ?></p>
				</div>
				<?php endif; ?>
<?php endwhile;?>
				</div><!--end grid-wrap-->
				
				<div class="clear"></div>
			</div><!--end content-pad-->
			<?php if(bandit::get_option('footer_widgets')) { get_template_part('footer-widgets'); } // footer-widgets.php ?>
		</div><!--end content-inner-->
		<div class="clear"></div>
	</div><!--end content-->
	
</div><!--end right-->

<?php get_footer(); ?>